<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreCouponReceiveModel extends Model
{
    protected $name = 'zxl_know_store_coupon_receive';

    /**
     * 商品类型
     */
    public static function getCouponType($key=''){
        $type = [
            '1' => '立减券',
            '2' => '满减券',
        ];
        if('' !== $key){
            if(array_key_exists($key,$type)){
                return $type[$key];
            }
            return false;
        }
        return $type;
    }
}